package com.fish.gaiety.gateway.entity.dto;

import com.fish.gaiety.gateway.base.BaseEntity;
import com.fish.gaiety.gateway.base.SecurityEncryptionAndDecryptionConvert;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.persistence.Convert;
import javax.persistence.Entity;
import javax.persistence.OneToOne;

@Entity
@Data
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true,exclude = {"orgHost", "port"})
public class Organization extends BaseEntity {

    private String orgName;

    @Convert(converter = SecurityEncryptionAndDecryptionConvert.class)
    private String orgHost;

    @Convert(converter = SecurityEncryptionAndDecryptionConvert.class)
    private String port;

    @OneToOne
    private User user;
}
